﻿#pragma once

#include "function/RenderSystem/AbstractRenderer.h"
#include "function/RenderSystem/AbstractBuffer.h"
#include "core/Macro.h"

namespace Engine
{
	class ENGINE_API RenderCommand
	{
	public:
		static void Init() { renderer->Init(); }
		static void DrawCall(const Ref<VertexArray>& vertexArray) { renderer->Draw(vertexArray); }

		static void SetClearColor(const Color4& color) { renderer->SetClearColor(color); }
		static void Clear() { renderer->Clear(); }

	private:
		static AbstractRenderer* renderer;
	};
}
